package spring.tra;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Boot {
	public static void main(String[] args) throws Exception{
//		BeanFactory
//		XmlBeanFactory 
		ApplicationContext context=new ClassPathXmlApplicationContext("context.xml", Boot.class);
		FoService foService=(FoService) context.getBean("foService");
		foService.insertFoo("hh");
		
		
	}
}
